using System;
using System.Web;

namespace ASPNET.StarterKit.IssueTracker.BusinessLogicLayer {


	//*********************************************************************
	//
	// ITSecurity Class
	//
	// Contains static methods for retrieving user secruity information.
	//
	//*********************************************************************


    public class ITSecurity {

		public static int GetUserID() {
			return ((CustomPrincipal)HttpContext.Current.User).UserID;
		}

		public static string GetUserRole() {
			return ((CustomPrincipal)HttpContext.Current.User).UserRole;
		}

		public static string GetName() {
			return ((CustomPrincipal)HttpContext.Current.User).Name;
		}


        public ITSecurity() {
        }
    }
}
